package com.ruoyi.common.constant;

import com.ruoyi.common.config.RuoYiConfig;

import java.io.File;

/**
 * 签章系统对接常量
 */
public class SignatureConstants {

    /**
     * 轨道集团 && 私钥- DEV
     **/
    public static final String MERCHANT_ID = "1634539549802iet8s430cm";
    public static final String PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCze9GWuUklI10thARe6Oe1ynao5IlNwB0V9A2xIEKBpaCbkm18bHkOTJm29nOFyPl2EpCzAsAqrP2KFTS1pgMy2+e454Kv/W5uoc+gh7TcSZ5zrG7OKhRE0EUC1xSbAlYfM/Exw1yalFgPQc2uxFHUA+g0W96BilubTjzUbaTJ3Azg/0Cr/69jvQ7DI46S534C19T675aChfXw/xKY8X82Ou362BmVprp23LBCDGr8RIBdG8xjLAqdHEzExPDgVRMhw0mGkAfeB2eaS2uKBp5IIO1EdZ8UTp9y7Xx0jjomGbeJz53pnXmLO+rCS9K6V1w5Wl8U1UgMOxpZsOvViPvbAgMBAAECggEAT1B7KREOGsRK6884IzznEDW9RBth9aLc95OW7VwlJ6eqlrUZfu9se34sO2cjW86ZNq0zlneztegmTnvahB8tsK7u8o4T+XOT9n25A+aUbPh3dgSQHrkHpfUnWf7z0yAwMK/CeUwswv6k/3ED1KRayMdFOMYUSMh8fOARD4q4VJ8SkTYQWGpYbtNnR80hDt/9TGMny156FPa0+bf+zspTEREQjWYcLhMSzpaz5GUt+uvXxdcz9jKEmq8/C26jISKswUtRyG0lykz7lzV/JGhhSCsdtiPpOALEwi4ftqlNEzLQaJEOiLtjLffK63JI1z+rt9yz0nemK9V71s91O1zpOQKBgQD7ZHXebNp7do0mSm7FEgdsachjRdjLnu8HEVYcIP+G6CcDCA2ogP24os418iocQFt0cZk7BKC6rvfiHTam+3xe8z06EVSaB7Z3d42kLWqnKppg0qO9WK3TjBdHrAassoZcdYX2ZGEV/lPebc6nNSO2+5JiIskgE/d0dC80Vy4TZQKBgQC2xfXo8DYohabeaQ6EkrsHoenZKPIUBd71KeKk/ztvomn/+3TaUmSQa78Kwcw0nw9S/fwYPQwUHt3ji8ayfA5nlEGrL2jlu1lT4O5AVvKGL6tkgW8G2b6LGZgTEAgpDqE6d5GNw5ugSsmUWYjTpHQe8oSpHET9AXOWXy3vlOT+PwKBgBPpfiiTCK800bNRu/piFjJxIo0ycByYxygRKHfr6TF/W++yiJprNS2Vv62oM8uvEU9k3BU/pZeD2mCPnc+WJeDDdXsO+luE9t/5mT+C1WrORhIbPRr3VjVmaEWmC5VMQrY6HNVKWCJM1cnNesvluqF4xbx+Mt4Wlsgjl8WWjjC9AoGAO6ov9pTD+UJ4EM7W0Gxd5cXzYtK9A9BO0lWUCSzQqEaqt8fMg6C193dU7BwLn3n1NLB45Si4krDo2mk8ufNJeIKrVUiqw6P/KySYYiSAE1Hob2zZY7EdRKdcP4zSPSTrePyjZVXfrdn8KBN6WSysQ5YDvHjgBH++ze3QPw+qGV0CgYEAoIyw54t+v1mqU/EjLl96hL3QvoYAXN2jL6MiqWLAPOXemGaUl04q3prIqW7z2mKSmd0g7xp7RFYjIzd1FTwmfkuO4q7/EaC2lDJ40S6J41nzZLTr7gjYP0QPKFDhkuKYAXEUqQeuQERm+hONUi4yK6bSbRste4A1tjzIXR1coeA=";

//    /**
//     * 测试环境url
//     */
//    public static final String ELECSIGN_API_URL = "http://caqz-api.cqmetro.cn";

    /**
     * url
     */
    public static final String ELECSIGN_API_URL = "http://caqz-cert.cqmetro.cn:8081";

    /**
     * 签章方法接口路径
     */
    public static final String SIGNATURE_METHOD = "/openapi/v3/registerUserAndSign.api";

    /**
     * 默认编码
     */
    public static final String CHARSET = "UTF-8";

    /**
     * 父文件夹路径
     */
    public static final String PARENT_PATH = "/metro";

    public static final String TYPE_OPENAPI = "/openapi/";

    public static final String VERSION_URL = "v3/";

    public static final String TYPE_OPENPAGE = "/openpage/";

    public static final String DOWNLOADBATCHCONTRACTZIP = "downloadBatchContractZip.page";

    // 批量注册
    public static final String REGISTERUSERANDSIGN = "registerUserAndSign.api";

    // 批量签约
    public static final String GENERATEHRSIGNURL = "generateHrSignUrl.api";

    public static final String VERSION = "v2";

    /**
     * 关键字
     * 员工签名印章 系统预设 白色
     */
    public static final String ELECSIGN_EMP_NAME = "elecsign_emp_name";

    /**
     * 关键字
     * 公司印章 系统预设 白色
     */
    public static final String ELECSIGN_COMPANY = "elecsign_company";

    /**
     * 关键字
     * 部门印章 系统预设 白色
     */
    public static final String ELECSIGN_DEPARTMENT = "elecsign_department";

    /**
     * 关键字
     * 法人章 系统预设 白色
     */
    public static final String ELECSIGN_LEGAL = "elecsign_legal";


    //    public static final String TEMPLATEURL = "http://111.229.152.31:9000/training-public/docx/20220309/2022_3_9_967218779.docx";
    /**
     * 本地文件地址
     */
//    public static final String TEMPLATEURL = "http://111.229.152.31:9000/training-public/";
    /**
     * 线上文件地址
     */
    public static final String TEMPLATEURL = "https://traning.cqmetro.cn:8001/training-public/";
    //    public static final String SAVENAME = "C:\\Users\\AugustRush\\Documents\\Tencent Files\\736939775\\FileRecv\\{name}";
    public static final String SAVENAME = RuoYiConfig.getProfile() + File.separator+"{name}";

    /**
     * 并发插入，redis缓存key
     */
    public static final String CERTIFICATE_REDIS_KEY="certificate:";
}
